package graph.editor.enhanced;

import graph.editor.enhanced.VertexModified;

import java.awt.geom.Ellipse2D;
import java.awt.geom.RectangularShape;
import java.util.List;

/**
 * @opt nodefillcolor green
 * @opt attributes
 * @opt operations
 */
public class EdgeModified extends graph.editor.Edge {

	public EdgeModified(VertexModified v1, VertexModified v2) {
		super(v1, v2);
	}
	
	public void addJointPoint(double x, double y) {
		jointPoints.add(new Ellipse2D.Double(x, y, JOINT_POINT_SIZE, JOINT_POINT_SIZE));
	}

	public String getText(){
		return textField.getText();
	}
	
	public List<RectangularShape> getJointPoints(){
		return this.jointPoints;
	}
}
